package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_user_image")
@NoArgsConstructor
public class UserImageEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String imageUrl;
    private Long businessId;
    private int imageType;
    private String imageSize;
    private Long userId;

    public UserImageEntity(String imageUrl, Long businessId, int imageType, String imageSize, Long userId) {
        this.imageUrl = imageUrl;
        this.businessId = businessId;
        this.imageType = imageType;
        this.imageSize = imageSize;
        this.userId = userId;
    }
}
